
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>JVM基础 · tgor note</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="tgor">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Java基础.html" />
    
    
    <link rel="prev" href="../category/java基础.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Me
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../category/微服务.html">
            
                <a href="../category/微服务.html">
            
                    
                    微服务
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Java-Spring/Feign.html">
            
                <a href="../Java-Spring/Feign.html">
            
                    
                    HTTP客户端Feign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Java-其他库/限流.html">
            
                <a href="../Java-其他库/限流.html">
            
                    
                    限流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../运维/Nginx限流.html">
            
                <a href="../运维/Nginx限流.html">
            
                    
                    限流Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../Java-Spring/负载均衡.html">
            
                <a href="../Java-Spring/负载均衡.html">
            
                    
                    负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../运维/Nginx负载均衡.html">
            
                <a href="../运维/Nginx负载均衡.html">
            
                    
                    负载均衡Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../Java-其他库/熔断Hystrix.html">
            
                <a href="../Java-其他库/熔断Hystrix.html">
            
                    
                    熔断Hystrix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../Java-其他库/缓存.html">
            
                <a href="../Java-其他库/缓存.html">
            
                    
                    缓存
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../Java-其他库/缓存.html">
            
                <a href="../Java-其他库/缓存.html#本地缓存">
            
                    
                    本地缓存
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html">
            
                    
                    分布式缓存Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="../Java-其他库/分布式事务.html">
            
                <a href="../Java-其他库/分布式事务.html">
            
                    
                    分布式事务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="../Java-其他库/分布式事务.html">
            
                <a href="../Java-其他库/分布式事务.html#事务消息">
            
                    
                    可靠事务消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="../Java-Spring/业务监控.html">
            
                <a href="../Java-Spring/业务监控.html">
            
                    
                    业务监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="../Java-其他库/分布式定时作业.html">
            
                <a href="../Java-其他库/分布式定时作业.html">
            
                    
                    分布式作业调度ElasticJob
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.14" data-path="../Java-ORM/ORM.html">
            
                <a href="../Java-ORM/ORM.html">
            
                    
                    ORM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.15" data-path="../Java-其他库/分布式系统及CAP原理.html">
            
                <a href="../Java-其他库/分布式系统及CAP原理.html">
            
                    
                    分布式系统及CAP原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.16" data-path="../MQ/RabbitMQ笔记.html">
            
                <a href="../MQ/RabbitMQ笔记.html">
            
                    
                    消息驱动Rabbitmq
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../category/数据库.html">
            
                <a href="../category/数据库.html">
            
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Mysql/经典数据库设计案例.html">
            
                <a href="../Mysql/经典数据库设计案例.html">
            
                    
                    mysql设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Mysql/Mysql事务与锁.html">
            
                <a href="../Mysql/Mysql事务与锁.html">
            
                    
                    mysql事务与锁
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Mysql/mysql数据类型.html">
            
                <a href="../Mysql/mysql数据类型.html">
            
                    
                    mysql数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../Mysql/mysql索引及查询.html">
            
                <a href="../Mysql/mysql索引及查询.html">
            
                    
                    mysql索引与查询
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../Mysql/mysql索引及查询.html">
            
                <a href="../Mysql/mysql索引及查询.html#查询语句设计准则">
            
                    
                    mysql查询语句设计准则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../Mysql/mysql性能测试.html">
            
                <a href="../Mysql/mysql性能测试.html">
            
                    
                    mysql性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../Mysql/mysql主从同步与读写分离.html">
            
                <a href="../Mysql/mysql主从同步与读写分离.html">
            
                    
                    mysql主从同步与读写分离
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../Java-Spring/SpringBoot事务注解@Transactional.html">
            
                <a href="../Java-Spring/SpringBoot事务注解@Transactional.html">
            
                    
                    Spring事务注解@Transactional
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../数据结构与算法/位运算应用实例.html">
            
                <a href="../数据结构与算法/位运算应用实例.html">
            
                    
                    位运算应用实例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../Mongodb-Client/morphia-API汇总.html">
            
                <a href="../Mongodb-Client/morphia-API汇总.html">
            
                    
                    morphia API汇总
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../Mongodb-Client/mongo驱动连接.html">
            
                <a href="../Mongodb-Client/mongo驱动连接.html">
            
                    
                    mongodb驱动与连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../Mongodb/mongodb-ObjectId实践.html">
            
                <a href="../Mongodb/mongodb-ObjectId实践.html">
            
                    
                    mongodb ObjectId实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../Mongodb/mongodb角色权限.html">
            
                <a href="../Mongodb/mongodb角色权限.html">
            
                    
                    mongodb角色权限
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../category/java并发.html">
            
                <a href="../category/java并发.html">
            
                    
                    Java并发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Java并发.html">
            
                <a href="Java并发.html">
            
                    
                    Java并发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Java并发.html">
            
                <a href="Java并发.html#锁">
            
                    
                    Java并发之锁设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Java并发.html">
            
                <a href="Java并发.html#synchronized">
            
                    
                    Java并发之synchronized
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Java之Lock.html">
            
                <a href="Java之Lock.html#reentrantlock">
            
                    
                    Java Lock之ReentrantLock
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="Java之Lock.html">
            
                <a href="Java之Lock.html#reentrantreadwritelock">
            
                    
                    Java Lock之ReentrantReadWriteLock
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Java之Future.html">
            
                <a href="Java之Future.html">
            
                    
                    Java Future
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Java之Future.html">
            
                <a href="Java之Future.html#futuretask">
            
                    
                    Java Future之FutureTask
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Java之Future.html">
            
                <a href="Java之Future.html#completablefuture">
            
                    
                    Java Future之CompletableFuture
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Java之Future.html">
            
                <a href="Java之Future.html#forkjointask">
            
                    
                    Java Future之ForkJoinTask
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="Java之Thread.html">
            
                <a href="Java之Thread.html">
            
                    
                    Java Thread
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../category/redis.html">
            
                <a href="../category/redis.html">
            
                    
                    Redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html#集群">
            
                    
                    Redis集群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html#消息订阅">
            
                    
                    Redis消息订阅
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html#lua">
            
                    
                    Redis Lua脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Redis/Redis.html">
            
                <a href="../Redis/Redis.html#配置汇总">
            
                    
                    Redis配置汇总
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../category/运维.html">
            
                <a href="../category/运维.html">
            
                    
                    运维
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../运维/Linux常用操作汇总.html">
            
                <a href="../运维/Linux常用操作汇总.html">
            
                    
                    Linux常用操作汇总
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../运维/阿里云笔记.html">
            
                <a href="../运维/阿里云笔记.html">
            
                    
                    阿里云笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../category/nginx.html">
            
                <a href="../category/nginx.html">
            
                    
                    Nginx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../运维/Nginx学习笔记.html">
            
                <a href="../运维/Nginx学习笔记.html">
            
                    
                    Nginx基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../运维/Nginx负载均衡.html">
            
                <a href="../运维/Nginx负载均衡.html">
            
                    
                    Nginx负载均衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../运维/Nginx限流.html">
            
                <a href="../运维/Nginx限流.html">
            
                    
                    Nginx限流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../运维/Nginx学习笔记.html">
            
                <a href="../运维/Nginx学习笔记.html#六、其他">
            
                    
                    Nginx客户端辅助技巧
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../category/容器化.html">
            
                <a href="../category/容器化.html">
            
                    
                    容器化
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Docker/docker笔记.html">
            
                <a href="../Docker/docker笔记.html">
            
                    
                    Docker学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Docker/docker笔记.html">
            
                <a href="../Docker/docker笔记.html#基础操作">
            
                    
                    Docker基础操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../Docker/docker笔记.html">
            
                <a href="../Docker/docker笔记.html#dockerfile">
            
                    
                    DockerFile
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../category/Web.html">
            
                <a href="../category/Web.html">
            
                    
                    Web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../运维/Http入坑Https笔记.html">
            
                <a href="../运维/Http入坑Https笔记.html">
            
                    
                    Http入坑Https笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Web/阿里云OSS.html">
            
                <a href="../Web/阿里云OSS.html">
            
                    
                    OSS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../category/java基础.html">
            
                <a href="../category/java基础.html">
            
                    
                    Java基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="Java基础.html">
            
                <a href="Java基础.html#jvm">
            
                    
                    JVM基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="Java基础.html">
            
                <a href="Java基础.html#语法糖">
            
                    
                    Java语法糖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="Java基础.html">
            
                <a href="Java基础.html#数据结构">
            
                    
                    Java数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="Java8函数式编程.html">
            
                <a href="Java8函数式编程.html">
            
                    
                    java8函数式编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="ArrayList源码分析.html">
            
                <a href="ArrayList源码分析.html">
            
                    
                    JDK源码分析ArrayList
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="HashMap源码分析.html">
            
                <a href="HashMap源码分析.html">
            
                    
                    JDK源码分析HashMap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="Java注解.html">
            
                <a href="Java注解.html">
            
                    
                    Java注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="Timsort排序算法.html">
            
                <a href="Timsort排序算法.html">
            
                    
                    Timsort排序算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.9" data-path="插入排序分析与Java实现.html">
            
                <a href="插入排序分析与Java实现.html">
            
                    
                    插入排序分析与Java实现
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../category/工具与规范.html">
            
                <a href="../category/工具与规范.html">
            
                    
                    工具与规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../工具/Maven使用技巧汇总.html">
            
                <a href="../工具/Maven使用技巧汇总.html">
            
                    
                    Maven使用技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../编码规范/Java编码规范.html">
            
                <a href="../编码规范/Java编码规范.html">
            
                    
                    Java编码规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../category/OLAP.html">
            
                <a href="../category/OLAP.html">
            
                    
                    OLAP
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../数据处理/storm学习笔记.html">
            
                <a href="../数据处理/storm学习笔记.html">
            
                    
                    流式计算Storm学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../category/数据运营.html">
            
                <a href="../category/数据运营.html">
            
                    
                    数据运营
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../数据运营/增长黑客数据运营.html">
            
                <a href="../数据运营/增长黑客数据运营.html">
            
                    
                    增长黑客-数据运营
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../category/前端技术栈.html">
            
                <a href="../category/前端技术栈.html">
            
                    
                    前端技术栈
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../前端/JavaScript设计模式.html">
            
                <a href="../前端/JavaScript设计模式.html">
            
                    
                    JavaScript设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="../前端/html相对路径与绝对路径.html">
            
                <a href="../前端/html相对路径与绝对路径.html">
            
                    
                    Html相对路径与绝对路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="../前端/微信小程序学习笔记.html">
            
                <a href="../前端/微信小程序学习笔记.html">
            
                    
                    微信小程序学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../category/个人.html">
            
                <a href="../category/个人.html">
            
                    
                    个人
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../个人/简历.html">
            
                <a href="../个人/简历.html">
            
                    
                    简历
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >JVM基础</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="java&#x57FA;&#x7840;">Java&#x57FA;&#x7840;</h1>
<h1 id="jvm">JVM</h1>
<h2 id="&#x8FD0;&#x884C;&#x65F6;&#x6570;&#x636E;&#x533A;">&#x8FD0;&#x884C;&#x65F6;&#x6570;&#x636E;&#x533A;</h2>
<p><img src="assets/1583976692107.png" alt="1583976692107"></p>
<table>
<thead>
<tr>
<th></th>
<th>&#x7EBF;&#x7A0B;</th>
<th>&#x5B58;&#x50A8;</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x7A0B;&#x5E8F;&#x8BA1;&#x6570;&#x5668;</td>
<td></td>
<td></td>
</tr>
<tr>
<td>&#x865A;&#x62DF;&#x673A;&#x6808;</td>
<td>&#x79C1;&#x6709;</td>
<td>&#x6BCF;&#x4E2A;&#x65B9;&#x6CD5;&#x7684;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x3001;&#x64CD;&#x4F5C;&#x6808;</td>
</tr>
<tr>
<td>&#x672C;&#x5730;&#x65B9;&#x6CD5;&#x6808;</td>
<td>&#x79C1;&#x6709;</td>
<td>&#x672C;&#x5730;&#x65B9;&#x6CD5;&#x7684;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x3001;&#x64CD;&#x4F5C;&#x6808;</td>
</tr>
<tr>
<td>&#x5806;</td>
<td>&#x5171;&#x4EAB;</td>
<td>&#x5BF9;&#x8C61;&#x5B9E;&#x4F8B;</td>
</tr>
<tr>
<td>&#x65B9;&#x6CD5;&#x533A;</td>
<td>&#x5171;&#x4EAB;</td>
<td>&#x52A0;&#x8F7D;&#x7C7B;&#x4FE1;&#x606F;&#x3001;&#x9759;&#x6001;&#x53D8;&#x91CF;</td>
</tr>
<tr>
<td>&#x5E38;&#x91CF;&#x6C60;</td>
<td>&#x5171;&#x4EAB;</td>
<td>&#x5E38;&#x91CF;</td>
</tr>
</tbody>
</table>
<h2 id="&#x5806;&#x4E0E;gc">&#x5806;&#x4E0E;GC</h2>
<h3 id="&#x5206;&#x533A;">&#x5206;&#x533A;</h3>
<p><img src="assets/1583978999033.png" alt="1583978999033"></p>
<p>&#x6574;&#x4E2A;&#x5806;&#x5927;&#x5C0F;=&#x65B0;&#x751F;&#x4EE3;&#x5927;&#x5C0F; + &#x8001;&#x5E74;&#x4EE3;&#x5927;&#x5C0F; + &#x6301;&#x4E45;&#x4EE3;&#x5927;&#x5C0F;</p>
<p>&#x65B0;&#x751F;&#x4EE3;Young Generation&#x5206;&#x4E3A;<strong>&#x4F0A;&#x7538;&#x533A;</strong>&#x4E0E;<strong>&#x751F;&#x5B58;&#x533A;</strong>&#xFF0C;&#x751F;&#x5B58;&#x533A;&#x518D;&#x5206;&#x4E3A;S0&#xFF08;From&#xFF09;&#x4E0E;S1&#xFF08;TO&#xFF09;&#xFF0C;&#x4E24;&#x8005;&#x8EAB;&#x4EFD;&#x4F1A;&#x4E92;&#x6362;</p>
<ul>
<li>&#x65B0;&#x751F;&#x4EE3;&#x5927;&#x5C0F;<code>-Xmn</code>&#x51B3;&#x5B9A;</li>
<li>&#x4F0A;&#x7538;&#x4E0E;&#x751F;&#x5B58;&#x533A;&#x6BD4;&#x4F8B;&#x53C2;&#x6570;&#xFF1A;<code>-XX:SurvivorRatio</code>&#xFF0C;&#x9ED8;&#x8BA4;<code>8:1</code>&#xFF0C;&#x5B9E;&#x9645;&#x4E3A;<code>8:1:1</code></li>
</ul>
<p>&#x8001;&#x5E74;&#x4EE3;&#xFF0C;&#x5B58;&#x653E;Minor GC&#x540E;&#x4ECD;&#x7136;&#x5B58;&#x6D3B;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x7A7A;&#x95F4;&#x4E0D;&#x8DB3;&#x65F6;&#xFF0C;&#x4F1A;&#x89E6;&#x53D1;Full GC</p>
<ul>
<li>&#x7A7A;&#x95F4;&#x5927;&#x5C0F;&#x5373;-Xmx &#x4E0E;-Xmn &#x4E24;&#x4E2A;&#x53C2;&#x6570;&#x4E4B;&#x5DEE;</li>
</ul>
<h3 id="minor-gc&#x4E0E;full-gc">Minor GC&#x4E0E;Full GC</h3>
<ul>
<li>Minor GC&#xFF1A;&#x6BCF;&#x6B21;&#x6536;&#x96C6;&#x540E;Eden&#x533A;&#x548C;&#x4E00;&#x5757;Survivor&#x533A;&#x90FD;&#x88AB;&#x6E05;&#x7A7A;&#xFF0C;&#x91C7;&#x7528;<strong>&#x590D;&#x5236;</strong>&#x7B97;&#x6CD5;</li>
<li>Full GC&#xFF1A;&#x8001;&#x5E74;&#x4EE3;&#x7A7A;&#x95F4;&#x4E0D;&#x8DB3;&#x65F6;&#x89E6;&#x53D1;&#xFF0C;&#x91C7;&#x7528;&#x6807;&#x8BB0;-&#x6E05;&#x7406;&#x7B97;&#x6CD5;</li>
</ul>
<p>&#x5206;&#x4E3A;&#x4F0A;&#x7538;&#x533A;&#x4E0E;&#x751F;&#x5B58;&#x533A;&#x7684;&#x539F;&#x56E0;&#xFF1A;</p>
<p>&#x7531;&#x4E8E;&#x65B0;&#x751F;&#x4EE3;&#x591A;&#x8BF4;&#x5BF9;&#x8C61;&#x90FD;&#x5C5E;&#x4E8E;&#x671D;&#x751F;&#x5915;&#x6B7B;&#xFF0C;&#x4E3A;&#x4E86;&#x51CF;&#x5C11;&#x4EA7;&#x751F;&#x5185;&#x5B58;&#x788E;&#x7247;&#xFF0C;&#x6BCF;&#x6B21;MinorGC&#x90FD;&#x91C7;&#x7528;&#x590D;&#x5236;&#x7B97;&#x6CD5;&#xFF0C;&#x5982;&#x4E0B;&#x56FE;&#xFF0C;&#x53D1;&#x751F;&#x4E00;&#x6B21;MGC&#xFF0C;&#x7EA2;&#x8272;&#x662F;&#x88AB;&#x6E05;&#x7406;&#x5BF9;&#x8C61;&#xFF0C;&#x7EFF;&#x8272;&#x4FDD;&#x7559;&#xFF0C;&#x4F0A;&#x7538;&#x533A;&#x4E0E;From&#x533A;&#x7684;&#x7EFF;&#x8272;&#x90FD;&#x4F1A;&#x88AB;&#x590D;&#x5236;&#x5230;TO&#x533A;&#xFF0C;&#x5F53;&#x518D;&#x6B21;&#x53D1;&#x751F;MGC&#xFF0C;TO&#x533A;&#x6E05;&#x7406;&#x8FC7;&#x671F;&#x5E76;&#x4FDD;&#x7559;&#x751F;&#x5B58;&#x5BF9;&#x8C61;&#x540E;&#xFF0C;&#x5373;&#x53D8;&#x4E3A;FROM&#x533A;&#xFF0C;</p>
<p><img src="assets/1584002375170.png" alt="1584002375170"></p>
<h3 id="&#x53EF;&#x8FBE;&#x6027;&#x5206;&#x6790;&#x6CD5;">&#x53EF;&#x8FBE;&#x6027;&#x5206;&#x6790;&#x6CD5;</h3>
<p>&#x4E00;&#x53E5;&#x8BDD;&#x603B;&#x7ED3;&#xFF0C;&#x6CA1;&#x6709;&#x8FDE;&#x63A5;&#x5230;GC Roots&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x53EF;&#x4EE5;&#x88AB;&#x56DE;&#x6536;&#xFF0C;&#x5426;&#x5219;&#x4E0D;&#x80FD;</p>
<p><img src="assets/1583979567564.png" alt="1583979567564"></p>
<p>&#x53EF;&#x4EE5;&#x4F5C;&#x4E3A;GC Roots&#x7684;&#x5BF9;&#x8C61;</p>
<ul>
<li>&#x672C;&#x5730;&#x53D8;&#x91CF;&#x8868;&#x4E2D;&#x5F15;&#x7528;&#x7684;&#x5BF9;&#x8C61;</li>
<li>&#x65B9;&#x6CD5;&#x533A;&#x4E2D;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x5F15;&#x7528;&#x7684;&#x5BF9;&#x8C61;</li>
<li>&#x65B9;&#x6CD5;&#x533A;&#x4E2D;&#x5E38;&#x91CF;&#x5F15;&#x7528;&#x7684;&#x5BF9;&#x8C61;</li>
<li>Native&#x65B9;&#x6CD5;&#x5F15;&#x7528;&#x7684;&#x5BF9;&#x8C61;</li>
</ul>
<h3 id="&#x5783;&#x573E;&#x6536;&#x96C6;&#x5668;">&#x5783;&#x573E;&#x6536;&#x96C6;&#x5668;</h3>
<p><img src="assets/1583979611315.png" alt="1583979611315"></p>
<h1 id="&#x547D;&#x4EE4;&#x4E0E;&#x542F;&#x52A8;">&#x547D;&#x4EE4;&#x4E0E;&#x542F;&#x52A8;</h1>
<h2 id="java--cp--java-jar&#x7684;&#x533A;&#x522B;">java -cp &amp; java jar&#x7684;&#x533A;&#x522B;</h2>
<h3 id="java--cp">java -cp</h3>
<p>&#x548C; -classpath &#x4E00;&#x6837;&#xFF0C;&#x662F;&#x6307;&#x5B9A;&#x7C7B;&#x8FD0;&#x884C;&#x6240;&#x4F9D;&#x8D56;&#x5176;&#x4ED6;&#x7C7B;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;&#x901A;&#x5E38;&#x662F;&#x7C7B;&#x5E93;&#x548C;jar&#x5305;&#xFF0C;&#x9700;&#x8981;&#x5168;&#x8DEF;&#x5F84;&#x5230;jar&#x5305;</p>
<p>&#x8BED;&#x6CD5;&#xFF1A;&#x591A;&#x4E2A;jar&#x5305;&#x4E4B;&#x95F4;&#x8FDE;&#x63A5;&#x7B26;&#x662F;<code>:</code></p>
<ul>
<li>&#x6307;&#x5B9A;&#x591A;&#x4E2A;jar&#x5305;&#xFF1A;<code>java -cp .:/usr/one.jar:/usr/two.jar mainclassname</code></li>
<li>&#x6307;&#x5B9A;&#x591A;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;&#x7684;jar&#x5305;&#x53CA;&#x914D;&#x7F6E;&#xFF1A;java -cp /app/lib/*:/app/config</li>
</ul>
<p><img src="assets/1586060531831.png" alt="1586060531831"></p>
<p>&#x7279;&#x70B9;&#xFF1A;&#x53EF;&#x4EE5;&#x90E8;&#x5206;&#x66F4;&#x65B0;</p>
<p>sh&#x793A;&#x4F8B;</p>
<pre><code class="lang-shell"># &#x751F;&#x6210; class path &#x503C;
APP_BASE_PATH=$(cd `dirname $0`; pwd)
CP=${APP_BASE_PATH}/config:${APP_BASE_PATH}/lib/*

function start()
{
    java -Djava.awt.headless=true -Xverify:none ${JAVA_OPTS} -cp ${CP} ${MAIN_CLASS}
}
</code></pre>
<h3 id="java--jar-myjar">java -jar my.jar</h3>
<p>maven&#x6784;&#x5EFA;&#x53C2;&#x8003;&#xFF1A;<a href="../&#x5DE5;&#x5177;/Maven&#x4F7F;&#x7528;&#x6280;&#x5DE7;&#x6C47;&#x603B;.html#&#x4E09;&#x3001;&#x6784;&#x5EFA;&#x4E0E;&#x63D2;&#x4EF6;">maven build</a></p>
<h1 id="&#x8BED;&#x6CD5;&#x7CD6;">&#x8BED;&#x6CD5;&#x7CD6;</h1>
<h2 id="&#x9759;&#x6001;&#x65B9;&#x6CD5;&#x3001;&#x7236;&#x7C7B;&#x6267;&#x884C;&#x6B21;&#x5E8F;">&#x9759;&#x6001;&#x65B9;&#x6CD5;&#x3001;&#x7236;&#x7C7B;&#x6267;&#x884C;&#x6B21;&#x5E8F;</h2>
<pre><code class="lang-java"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">BaseClass</span> </span>{
 <span class="hljs-keyword">public</span>` `BaseClass() {}
 ``{
 ``System.out.println(``<span class="hljs-string">&quot;I&#x2019;m BaseClass class&quot;</span>``);
 ``}
 ``<span class="hljs-keyword">static</span>` `{
 ``System.out.println(``<span class="hljs-string">&quot;static BaseClass&quot;</span>``);
 ``}
 ``}
 ``<span class="hljs-keyword">public</span>` `<span class="hljs-class"><span class="hljs-keyword">class</span>` `<span class="hljs-title">Base</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">BaseClass</span> </span>{
 ``<span class="hljs-keyword">public</span>` `Base() {}
 ``{
 ``System.out.println(``<span class="hljs-string">&quot;I&#x2019;m Base class&quot;</span>``);
 ``}
 ``<span class="hljs-keyword">static</span>` `{
 ``System.out.println(``<span class="hljs-string">&quot;static Base&quot;</span>``);
 ``}
 ``<span class="hljs-keyword">public</span>` `<span class="hljs-keyword">static</span>` `<span class="hljs-keyword">void</span>` `main(String[] args) {
 ``<span class="hljs-keyword">new</span>` `Base();
 ``}
 ``}

 <span class="hljs-comment">//output</span>
<span class="hljs-keyword">static</span> BaseClass
<span class="hljs-keyword">static</span> Base
I&#x2019;m BaseClass <span class="hljs-class"><span class="hljs-keyword">class</span>
<span class="hljs-title">I</span>&#x2019;<span class="hljs-title">m</span> <span class="hljs-title">Base</span> <span class="hljs-title">class</span>
</span></code></pre>
<h2 id="&#x5185;&#x90E8;&#x7C7B;">&#x5185;&#x90E8;&#x7C7B;</h2>
<h2 id="&#x5E38;&#x7528;&#x53C2;&#x6570;&#x6C47;&#x603B;">&#x5E38;&#x7528;&#x53C2;&#x6570;&#x6C47;&#x603B;</h2>
<p>&#x53C2;&#x6570;&#x5206;&#x7C7B;</p>
<ul>
<li>&#x6807;&#x51C6;&#x53C2;&#x6570;&#xFF08;-&#xFF09;&#xFF1A;&#x6240;&#x6709;JVM&#x5B9E;&#x73B0;&#xFF0C;&#x5411;&#x540E;&#x517C;&#x5BB9;</li>
<li>&#x975E;&#x6807;&#x51C6;&#x53C2;&#x6570;&#xFF08;-X&#xFF09;&#xFF1A;&#x9ED8;&#x8BA4;JVM&#x5B9E;&#x73B0;</li>
<li>&#x975E;Stable&#x53C2;&#x6570;&#xFF08;-XX&#xFF09;&#xFF1A;</li>
</ul>
<table>
<thead>
<tr>
<th>&#x53C2;&#x6570;</th>
<th>&#x8BF4;&#x660E;</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>-Xms</td>
<td>&#x521D;&#x59CB;&#x5185;&#x5B58;</td>
<td>512m</td>
</tr>
<tr>
<td>-Xmx</td>
<td>JVM&#x6700;&#x5927;&#x53EF;&#x7528;&#x5185;&#x5B58;</td>
<td>512m</td>
</tr>
<tr>
<td>-Xmn</td>
<td>&#x65B0;&#x751F;&#x4EE3;&#x53EF;&#x7528;&#x5185;&#x5B58;</td>
<td>200m</td>
</tr>
<tr>
<td><strong>-Xss</strong></td>
<td>&#x6BCF;&#x4E2A;&#x7EBF;&#x7A0B;&#x7684;&#x5806;&#x6808;&#x5927;&#x5C0F;</td>
<td>128k</td>
</tr>
<tr>
<td>-XX:PermSize</td>
<td>&#x521D;&#x59CB;&#x975E;&#x5806;&#x5185;&#x5B58;</td>
<td>64m</td>
</tr>
<tr>
<td>-XX:MaxPermSize</td>
<td>&#x6700;&#x5927;&#x975E;&#x5806;&#x5185;&#x5B58;&#xFF0C;&#x6709;&#x7591;&#x95EE;&#xFF0C;&#x5F85;&#x786E;&#x8BA4;</td>
<td>128m</td>
</tr>
<tr>
<td><strong>-XX:MaxNewSize=size</strong></td>
<td><strong>&#x65B0;&#x751F;&#x6210;&#x5BF9;&#x8C61;&#x80FD;&#x5360;&#x7528;&#x5185;&#x5B58;&#x7684;&#x6700;&#x5927;&#x503C;</strong></td>
<td></td>
</tr>
<tr>
<td>-XX:NewRatio=2</td>
<td>&#x65B0;&#x751F;&#x4EE3;&#x5185;&#x5B58;&#x5BB9;&#x91CF;&#x4E0E;&#x8001;&#x751F;&#x4EE3;&#x5185;&#x5B58;&#x5BB9;&#x91CF;&#x7684;&#x6BD4;&#x4F8B;</td>
</tr>
</tbody>
</table>
<h1 id="&#x6570;&#x636E;&#x7ED3;&#x6784;">&#x6570;&#x636E;&#x7ED3;&#x6784;</h1>
<h2 id="8&#x79CD;&#x57FA;&#x672C;&#x6570;&#x636E;&#x7C7B;&#x578B;">8&#x79CD;&#x57FA;&#x672C;&#x6570;&#x636E;&#x7C7B;&#x578B;</h2>
<table>
<thead>
<tr>
<th>&#x5E8F;&#x53F7;</th>
<th>&#x6570;&#x636E;&#x7C7B;&#x578B;</th>
<th>&#x4F4D;&#x6570;</th>
<th>&#x9ED8;&#x8BA4;&#x503C;</th>
<th>&#x53D6;&#x503C;&#x8303;&#x56F4;</th>
<th>&#x4E3E;&#x4F8B;&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>byte(&#x4F4D;)</td>
<td>8</td>
<td>0</td>
<td>-2^7 - 2^7-1</td>
<td>byte b = 10;</td>
</tr>
<tr>
<td>2</td>
<td>short(&#x77ED;&#x6574;&#x6570;)</td>
<td>16</td>
<td>0</td>
<td>-2^15 - 2^15-1</td>
<td>short s = 10;</td>
</tr>
<tr>
<td>3</td>
<td>int(&#x6574;&#x6570;)</td>
<td>32</td>
<td>0</td>
<td>-2^31 - 2^31-1</td>
<td>int i = 10;</td>
</tr>
<tr>
<td>4</td>
<td>long(&#x957F;&#x6574;&#x6570;)</td>
<td>64</td>
<td>0</td>
<td>-2^63 - 2^63-1</td>
<td>long l = 10l;</td>
</tr>
<tr>
<td>5</td>
<td>float(&#x5355;&#x7CBE;&#x5EA6;)</td>
<td>32</td>
<td>0.0</td>
<td>-2^31 - 2^31-1</td>
<td>float f = 10.0f;</td>
</tr>
<tr>
<td>6</td>
<td>double(&#x53CC;&#x7CBE;&#x5EA6;)</td>
<td>64</td>
<td>0.0</td>
<td>-2^63 - 2^63-1</td>
<td>double d = 10.0d;</td>
</tr>
<tr>
<td>7</td>
<td>char(&#x5B57;&#x7B26;)</td>
<td>16</td>
<td>&#x7A7A;</td>
<td>0 - 2^16-1</td>
<td>char c = &apos;c&apos;;</td>
</tr>
<tr>
<td>8</td>
<td>boolean(&#x5E03;&#x5C14;&#x503C;)</td>
<td>8</td>
<td>false</td>
<td>true&#x3001;false</td>
<td>boolean b = true;</td>
</tr>
</tbody>
</table>
<h2 id="string&#x3001;stringbuffer&#x3001;stringbuilder&#x533A;&#x522B;">String&#x3001;StringBuffer&#x3001;StringBuilder&#x533A;&#x522B;</h2>
<table>
<thead>
<tr>
<th></th>
<th>final</th>
<th>&#x5B58;&#x653E;&#x533A;&#x57DF;</th>
<th>&#x7279;&#x70B9;</th>
</tr>
</thead>
<tbody>
<tr>
<td>String</td>
<td>&#x4E0D;&#x53EF;&#x53D8;</td>
<td>&#x5E38;&#x91CF;&#x6C60;</td>
<td></td>
</tr>
<tr>
<td>StringBuilder</td>
<td>&#x53EF;&#x53D8;&#xFF0C;&#x4E0D;&#x4EA7;&#x751F;&#x65B0;&#x5BF9;&#x8C61;</td>
<td>&#x5806;</td>
<td>&#x901F;&#x5EA6;&#x4F18;&#x52BF;&#x3001;&#x975E;&#x7EBF;&#x7A0B;&#x5B89;&#x5168;</td>
</tr>
<tr>
<td>StringBuffer</td>
<td>&#x53EF;&#x53D8;&#xFF0C;&#x4E0D;&#x4EA7;&#x751F;&#x65B0;&#x5BF9;&#x8C61;</td>
<td>&#x5806;</td>
<td>&#x76F8;&#x5BF9;&#x7EBF;&#x7A0B;&#x5B89;&#x5168;</td>
</tr>
</tbody>
</table>
<h2 id="hashmap&#x4E0E;hashtable&#x533A;&#x522B;">HashMap&#x4E0E;HashTable&#x533A;&#x522B;</h2>
<table>
<thead>
<tr>
<th></th>
<th></th>
<th>&#x7ED3;&#x6784;</th>
<th>&#x7EBF;&#x7A0B;&#x5B89;&#x5168;</th>
<th>Null&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td>HashMap</td>
<td>Map<k,v></k,v></td>
<td>&#x54C8;&#x5E0C;&#xFF0C;&#x5B58;&#x952E;&#x503C;&#x5BF9;</td>
<td>&#x975E;&#x5B89;&#x5168;&#xFF0C;&#x975E;synchronized</td>
<td>&#x5141;&#x8BB8;key&#xFF0C;value</td>
</tr>
<tr>
<td>HashTable</td>
<td></td>
<td>&#x54C8;&#x5E0C;&#xFF0C;&#x5B58;&#x952E;&#x503C;&#x5BF9;</td>
<td>&#x76F8;&#x5BF9;&#x5B89;&#x5168;&#xFF0C;synchronized</td>
<td>&#x90FD;&#x4E0D;&#x5141;&#x8BB8;</td>
</tr>
<tr>
<td>HashSet</td>
<td>Set<e></e></td>
<td>&#x4EE5;&#x54C8;&#x5E0C;&#x8868;&#x5F62;&#x5F0F;&#x5B58;&#x653E;&#xFF0C;&#x4E0D;&#x5305;&#x542B;&#x91CD;&#x590D;&#x5BF9;&#x8C61;&#xFF0C;&#x6839;&#x636E;hashCode&#x5224;&#x65AD;&#x5BF9;&#x8C61;&#x76F8;&#x7B49;</td>
<td>&#x975E;</td>
</tr>
</tbody>
</table>
<h2 id="arraylist&#x4E0E;linkedlist">ArrayList&#x4E0E;LinkedList</h2>
<table>
<thead>
<tr>
<th></th>
<th>&#x6570;&#x636E;&#x7ED3;&#x6784;</th>
<th>&#x968F;&#x673A;get&#x3001;set&#x6027;&#x80FD;</th>
<th>&#x7279;&#x5B9A;&#x573A;&#x666F;&#xFF1A;&#x4F8B;&#x5982;&#x5927;&#x91CF;&#x4ECE;&#x5934;&#x90E8;&#x63D2;&#x5165;&#x6570;</th>
</tr>
</thead>
<tbody>
<tr>
<td>ArrayList</td>
<td>&#x52A8;&#x6001;&#x6570;&#x7EC4;</td>
<td>&#x66F4;&#x4F18;</td>
<td></td>
</tr>
<tr>
<td>LinkedList</td>
<td>&#x94FE;&#x8868;</td>
<td>&#x76F8;&#x5BF9;&#x5DEE;&#xFF0C;&#x8981;&#x79FB;&#x52A8;&#x6307;&#x9488;</td>
<td>&#x66F4;&#x4F18;</td>
</tr>
</tbody>
</table>
<pre><code>//&#x4ECE;&#x5934;&#x90E8;&#x63D2;&#x5165;&#x6570;, LinkedList&#x6027;&#x80FD;&#x66F4;&#x4F18;&#xFF0C;Arraylist&#x9700;&#x8981;&#x6574;&#x4F53;&#x504F;&#x79FB;&#x6570;&#x636E;&#xFF0C;&#x5F00;&#x9500;&#x66F4;&#x5927;&#xFF0C;&#x800C;LinkedList&#x53EA;&#x9700;&#x5728;&#x5934;&#x90E8;&#x589E;&#x52A0;&#x8BB0;&#x5F55;&#xFF0C;&#x65E0;&#x9700;&#x504F;&#x79FB;
List list
for(int i=0;i&lt;N;i++){   
    list.add(0, o); 
}
</code></pre><footer class="page-footer"><span class="copyright">Copyright &#xA9; tgor.top 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-04-23 15:32:53
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../category/java基础.html" class="navigation navigation-prev " aria-label="Previous page: Java基础">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Java基础.html#语法糖" class="navigation navigation-next " aria-label="Next page: Java语法糖">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"JVM基础","level":"1.10.1","depth":2,"next":{"title":"Java语法糖","level":"1.10.2","depth":2,"anchor":"#语法糖","path":"Java-Base/Java基础.md","ref":"Java-Base/Java基础.md#语法糖","articles":[]},"previous":{"title":"Java基础","level":"1.10","depth":1,"path":"category/java基础.md","ref":"category/java基础.md","articles":[{"title":"JVM基础","level":"1.10.1","depth":2,"anchor":"#jvm","path":"Java-Base/Java基础.md","ref":"Java-Base/Java基础.md#jvm","articles":[]},{"title":"Java语法糖","level":"1.10.2","depth":2,"anchor":"#语法糖","path":"Java-Base/Java基础.md","ref":"Java-Base/Java基础.md#语法糖","articles":[]},{"title":"Java数据结构","level":"1.10.3","depth":2,"anchor":"#数据结构","path":"Java-Base/Java基础.md","ref":"Java-Base/Java基础.md#数据结构","articles":[]},{"title":"java8函数式编程","level":"1.10.4","depth":2,"path":"Java-Base/Java8函数式编程.md","ref":"Java-Base/Java8函数式编程.md","articles":[]},{"title":"JDK源码分析ArrayList","level":"1.10.5","depth":2,"path":"Java-Base/ArrayList源码分析.md","ref":"Java-Base/ArrayList源码分析.md","articles":[]},{"title":"JDK源码分析HashMap","level":"1.10.6","depth":2,"path":"Java-Base/HashMap源码分析.md","ref":"Java-Base/HashMap源码分析.md","articles":[]},{"title":"Java注解","level":"1.10.7","depth":2,"path":"Java-Base/Java注解.md","ref":"Java-Base/Java注解.md","articles":[]},{"title":"Timsort排序算法","level":"1.10.8","depth":2,"path":"Java-Base/Timsort排序算法.md","ref":"Java-Base/Timsort排序算法.md","articles":[]},{"title":"插入排序分析与Java实现","level":"1.10.9","depth":2,"path":"Java-Base/插入排序分析与Java实现.md","ref":"Java-Base/插入排序分析与Java实现.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["chapter-fold","splitter","tbfed-pagefooter","page-toc-button","-search","search-pro","popup","back-to-top-button","code","copy-code-button"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy tgor.top 2019","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"splitter":{},"search-pro":{"cutWordLib":"nodejieba","defineWord":["Gitbook Use"]},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"sepia","family":"serif","size":1},"highlight":{},"page-toc-button":{"maxTocDepth":2,"minTocSize":2},"back-to-top-button":{},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"tgor","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"tgor note","gitbook":"*","description":"tgor生活工作记录"},"file":{"path":"Java-Base/Java基础.md","mtime":"2020-04-23T07:32:53.269Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-29T08:43:24.127Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

